package com.mc.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.mc.model.Teacher;

public interface TeacherService {
	  int deleteByPrimaryKey(Integer id);

	    int insert(Teacher record);

	    int insertSelective(Teacher record);

	    Teacher selectByPrimaryKey(Integer id);

	    int updateByPrimaryKeySelective(Teacher record);

	    int updateByPrimaryKey(Teacher record);
	    
	    void insertTeacher(String NAME1,String NO1,String gender1,int major_id1,String phone1,
	    		String qq1,int teachertypeid,int userid,String intro);
	    
	    /**
	     * 得到所有计科教师
	     * @return
	     */
	    List<Teacher> selectAllcteachers();
	    /**
	     * 得到所有软工教师
	     * @return
	     */
	    List<Teacher> selectAllrteachers();
	    /**
	     * 得到所有信科教师
	     * @return
	     */
	    List<Teacher> selectAllxteachers();
	    /**
	     * 得到所有应用数学教师
	     * @return
	     */
	    List<Teacher> selectAllyteachers();
	    /**
	     * 得到所有物联网教师
	     * @return
	     */
	    List<Teacher> selectAllwteachers();


	    public List<Teacher> getTeacherByMajorName(String mName);
	    
	    public List<Teacher> getTeacherByTeacherType(String type);
	    
	    
}
